package com.sec.history.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sec.base.entity.BaseEntity;
import com.sec.user.entity.User;

@Entity
@Table(name = "t_s_history")
public class History extends BaseEntity {

	private String password; // 加密的密码
	private String originalText; // 原数据
	private String cipherText; // 结果
	private String operationType; // 操作类型
	private String type; // 文字还是图片
	@ManyToOne
	@JoinColumn(name = "user_id")
	private User user;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getOriginalText() {
		return originalText;
	}

	public void setOriginalText(String originalText) {
		this.originalText = originalText;
	}

	public String getCipherText() {
		return cipherText;
	}

	public void setCipherText(String cipherText) {
		this.cipherText = cipherText;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
